-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DM-46287: Make image binning a subtask for IsrTask #349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few suggested changes, but I'm happy here. It would be good to have the pipe_tasks
task call this code as well, but that can be on a follow-up ticket (I'll file that now).
storageClass=self.binnedExposure.storageClass, | ||
dimensions=frozenset(config.exposureDimensions), | ||
) | ||
if config and config.exposureStorageClass != self.inputExposure.storageClass: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any expected cases where the storageClass
would need to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this also would cause problems with the check on L193, as that will raise if the storageClass
isn't an Exposure
. This does allow ExposureD
, so maybe a comment here mentioning that although the storageClass
can be changed, if it isn't some kind of Exposure
, it's going to cause problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this to ensure that the output storage class would always match the input storage class. While I could have the input and output storage classes as the generic Exposure
, and it would be happy with any of the sub-types as input, any subtype information (I,F,D etc) would be lost on the output (at least that's my understanding).
I can certainly add the comment. [Late edit: Rather than add a comment, I've added an extra line to the config doc to state that it must be of type Exposure or one of its sub-types.]
5851362
to
6c17775
Compare
IsrTask subtasks BinExposureTask to perform exposure binning.
IsrTaskLSST subtasks BinExposureTask to perform exposure binning.
6c17775
to
1c10223
Compare
No description provided.